package com.ke.searchhouse.repository;

import com.ke.searchhouse.entity.SupportAddress;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author  keke
 * @create  2018/10/14 0014 下午 8:26
 * @desc 支持城市列表接口
 **/
public interface AddressRepository extends JpaRepository<SupportAddress, Long> {
    /**
     * 获取所有对应行政级别的信息
     * @param level
     * @return
     */
      List<SupportAddress> findAllByLevel(String level);

    List<SupportAddress> findAllByLevelAndBelongTo(String value, String cityName);
}
